package com.winton.model;

import java.sql.Date;
import java.util.List;

/**功能栏目表*/
public class S_ITEM {
	
	private int id;
	
	private String name;
	
	private int pid;
	
	private int showorder;
	
	private int style;
	
	private Date systime;
	
	private int userid;
	
	private String url;
	
	private int itemstate;
	
	private List<S_ITEM> childItem;
	
	private String upname;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getPid() {
		return pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	public int getShoworder() {
		return showorder;
	}

	public void setShoworder(int showorder) {
		this.showorder = showorder;
	}

	public int getStyle() {
		return style;
	}

	public void setStyle(int style) {
		this.style = style;
	}

	public Date getSystime() {
		return systime;
	}

	public void setSystime(Date systime) {
		this.systime = systime;
	}

	public int getUserid() {
		return userid;
	}

	public void setUserid(int userid) {
		this.userid = userid;
	}
	
	public int getItemstate() {
		return itemstate;
	}

	public void setItemstate(int itemstate) {
		this.itemstate = itemstate;
	}

	public List<S_ITEM> getChildItem() {
		return childItem;
	}

	public void setChildItem(List<S_ITEM> childItem) {
		this.childItem = childItem;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
		
	public String getUpname() {
		return upname;
	}

	public void setUpname(String upname) {
		this.upname = upname;
	}

	public Object[] getInsertFields() {
		// TODO Auto-generated method stub
		return new Object[] {name,pid,showorder,style,userid,url};
	}

	public Object[] getUpdateFields() {
		// TODO Auto-generated method stub
		return new Object[] {name,pid,showorder,style,url,id};
	}
	
	

}
